package com.多线程;

public class runable implements Runnable {

  @Override
  public void run() {
    int sum = 0;
    for (int i = 0; i < 100; i++) {
      sum += i;
    }
  }

  public static void main(String[] args) throws Exception{
    runable runable = new runable();
    Thread t1 = new Thread(runable);
    Thread t2 = new Thread(runable);
    t1.start();
    t1.join();


  }
}
